/* colors
#2B2042 - dark blue
#8D99AE - light blue
#EDF2F4 - blue to white
#EF233C - red 
*/


/* ----------------global styles ---------------*/

html {
    font-size: 16px;
    /* 设置根元素字体大小为16像素 */
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    height: 100%;
    width: 100%;

}

h1,
h2 {
    font-family: 'Caveat', cursive;
    font-weight: 400;
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 2.5rem;
    margin-top: 0;
}

h3 {
    margin: 0;
}


/* ------------------navigation------------------- */

nav {
    text-align: center;
    position: fixed;
    width: 100%;
    background-color: white;
    top: 0;
}

nav a {
    display: inline-block;
    margin: 0.3125rem;
    font-size: 0.6875rem;
    text-decoration: none;
    font-weight: 700;
    /* 转为大写字母 */
    text-transform: uppercase;
    color: #2B2042;
}


/* 检查屏幕宽度是否大于或等于440像素。
如果条件成立，那么其中的CSS样式将被应用。 */

@media(min-width:27.5rem) {
    nav a {
        margin: 0.875rem;
        font-size: 1rem;
    }
}


/* ------------------header------------------- */

header {
    position: relative;
    padding-top: 3.125rem;
    text-align: center;
    background-color: #2B2042;
    color: #8D99AE;
}

header h1,
header h2 {
    color: #EDF2F4;
}

h1 {
    margin: 0;
}

.content-wrap {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    padding: 3.75rem 3.125rem;
    max-width: 59.375rem;
    overflow: hidden;
}

@media (min-width:58.4375rem) {
    .content-wrap {
        flex-direction: row;
    }

}

.profile-img {
    width: 25rem;
    height: 9.375rem;
    border-radius: 50%;
}

@media (min-width:27.5rem) {
    .profile-img {
        width: 30rem;
        height: 12.5rem;
    }

}

@media (min-width:58.4375rem) {
    .profile-img {
        width: 46rem;
        height: 15.625rem;
    }

}

.btn {
    text-decoration: none;
    background: #EF233C;
    color: white;
    padding: 0 0.3125rem 0 0.3125rem;
}

@media (min-width:27.5rem) {
    .btn {
        padding: 0.625rem;
    }
}

.download {
    position: absolute;
    right: 0;
    bottom: 0;
}

/* ------------------------------work----------------------- */
.work-experience {
    padding-top: 2.5rem;
    background-color: #EDF2F4;
}

.work-wrapper {
    margin: 0 auto;
    padding: 0 1.875rem;
    max-width: 59.375rem;
}

.job-wrapper {
    display: block;
    padding-bottom: 1.875rem;
}

@media (min-width:58.4375rem) {
    .job-wrapper {
        display: grid;
        /* 定义网格的列 */
        grid-template-columns: 1fr 2.5fr;
        column-gap: 1.875rem;
    }

}

h3 ~ p {
    margin: 0;
}

/* @media (min-width:58.4375rem) {
    .job-description p:first-of-type {
        margin-top: 0;
    }
} */

ol li {
    margin: 8px 0;
    padding-left: 0.9375rem;
}

ol li a {
    color: blue;
}

/* --------------------------------------Education ---------------------- */
.education {
    padding: 2.5rem 0;
    width: 100%;
    height: 100%;
    /* 注意逗号的使用 */
    background: linear-gradient(rgba(141, 153, 174, 0.9),
            rgba(141, 153, 174, 0.5)), url(./assets/pexels-spring-toan-3854483.jpg) no-repeat fixed;
    background-size: cover;
}

.education-wrapper {
    margin: 0 auto;
    padding: 0 1.875rem;
}

/* ------------footer--------------- */
footer {
    text-align: center;
    background-color: #2B2042;
    color: #8D99AE;
}

.contact-wrapper {
    margin: 0 auto;
    padding: 3.125rem 0;
    max-width: 56.25rem;
}

.contact-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.contact-buttons a {
    color: #8D99AE;
}

.media-pic {
    width: 6.25rem;
    height: 6.25rem;
    border-radius: 50%;
    border: #8D99AE solid 0.125rem;
}

.media-pic:hover {
    transform: scale(1.1);
}

p + h3 {
    margin-top: 1.875rem;
}

footer p {
    margin-top: 3.125rem;
}